<template>
  <NavBar />
  
  <router-view></router-view>>
</template>


<script>

import NavBar from './components/NavBar.vue'
import "bootstrap/dist/css/bootstrap.min.css"
import "bootstrap/dist/js/bootstrap"
import $ from 'jquery'
export default {
  components: {
    NavBar
  },

  setup() {
    $.ajax({
      url: "https://app3217.acapp.acwing.com.cn/api/user/account/token/",
      type: "post",
      data: {
        username: 'wxq',
        password: 'wxq123321',
      },
      success(resp) {
        console.log(resp);
      },
      error(resp) {
        console.log(resp);
      }
    });
    $.ajax({
      url: "https://app3217.acapp.acwing.com.cn/api/user/account/register/",
      type: "post",
      data: {
        username: 'wxq12',
        password: 'wxq123321',
        confirmedPassword: 'wxq123321',
      },
      success(resp) {
        console.log(resp);
      },
      error(resp) {
        console.log(resp);
      }
    })
  }
}

</script>

<style>
body{
  background-image: url("@/assets/images/background.png");
  background-size: cover;
}
</style>
